package com.cloudshop.service.user.controller;

import java.util.HashMap;
import java.util.Map;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Users Demo Controller.
 *
 * @author 宫新程
 * @since 2019/3/29 16:52
 */
@RestController
public class DemoController {

  /** 测试. */
  @GetMapping("/user/demo")
  public Object getUserName(@RequestParam("username") String username) {
    Map<String, String> result = new HashMap<>();
    result.put("username", username);
    result.put("password", "admin");
    return result;
  }
}
